Interrupt 21h Function 5704h
Retrieves the
last access date for the given file.
mov ax, 5704h
; Get Last Access Date and Time
mov bx, Handle
; see below
int 21h
jc error
mov [Date], dx
; last access date
mov [Time], cx
; currently not supported, always 0
Parameters
Handle
File handle.
Return Value
Clears the
carry flag and sets the CX register to zero and the DX register to these values
if successful:
Bits |
Contents |
0-4 |
Day of the
month (1-31) |
5-8 |
Month (1 =
January, 2 = February, and so on) |
9-15 |
Year offset
from 1980 (that is, add 1980 to get the actual year) |
Otherwise,
the function sets the carry flag and sets the AX register to an error value.